<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        const name = "lingtong"
        const age = 20;
        const user = {name:name,age:age};
        console.log(user)

        // ES6语法
        const user2 = {age,name}
        console.log(user2);
    </script>
</body>
</html>